dict1={'pageSize': '30', 'product': 'EFund', 'DISCOUNT': '', 'SortColumn': 'SYL_Y', 'MobileKey': '4a69e1fc7d583fe671ad69c95ae6c2b7%7C%7C945235770232353', 'BUY': 'true', 'appType': 'ttjj', 'LevelOne': '', 'version': '6.3.2', 'onFundCache': '3', 'Sort': 'desc', 'pageIndex': '1', 'FundType': '6', 'CompanyId': '', 'plat': 'Android', 'TOPICAL': '', 'ENDNAV': '', 'LevelTwo': '', 'ISABNORMAL': 'true', 'DataConstraintType': '0', 'gToken': 'ceaf-236567466abfda4e2864831ea5645231', 'ESTABDATE': '6', 'deviceid': '4a69e1fc7d583fe671ad69c95ae6c2b7%7C%7C945235770232353'}

list1=[]
target=sorted(dict1.items(),key=lambda x:x[0],reverse=False)#字典按照value ascii排序,lambda x :x[0]按照键key ascii排序 ，数字大写小写顺序

# print(dict(target))
for k ,v in dict(target).items():
    a=''.join('{}={}'.format(k,v))
    list1.append(a)
# print(list1)

# print('&'.join(i for i in list1))
print('&'.join(list1))






# result=''
# for k,v in dict(target).items():
#     result +=k+"="+v+"&"
# print(result)



# print('&'.join('{}={}'.format(k,v) for k,v in dict1.items()))